package com.cicc.springboot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cicc.springboot.common.dto.R;
import com.cicc.springboot.entity.PurchaseOrderEntity;
import com.cicc.springboot.model.PurchaseOrderQuery;
import org.springframework.web.multipart.MultipartFile;

/**
 * @InterfaceName PurchaseOrderService
 * @Description TODO
 * @Author 转轮王
 * @Date 2024/9/30 16:03
 * @Version 1.0
 */

public interface PurchaseOrderService {

    //分页查询物料信息
    R<Page<PurchaseOrderEntity>> queryPurchaseOrderPage(int currentPage, int pageSize, String createTimeStart, String createTimeEnd, String supplierName, String supplierCode);

    //新增或修改信息
    R<String> savePurchaseOrder(PurchaseOrderQuery purchaseOrderQuery);

    //删除采购订单信息
    R<String> deletePurchaseOrder(long id);

    //查询全部供应商的名称
    R<String[]> queryAllSupplierName();

    //根据供应商名称查找供应商编码
    R<String> querySupplierCodeByName(String supplierName);


}
